﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>	
	<script type="text/javascript" src="/websys/static/zclip/jquery1.4.2.js"></script>
	<script type="text/javascript" src="/websys/static/zclip/jquery.zclip.js"></script>
<body>
<input type="text" name="text" id="text" value="http://www.baidu.com" />
<a href="javascript:void(0)" id="dynamic">复制</a>
<script type="text/javascript">
$(document).ready(function(){
    $("#dynamic").zclip({
        path:'/websys/static/zclip/ZeroClipboard.swf',
        copy:$('#text').val(),
        beforeCopy:function(){
            //some code
            alert(0)
        },
        afterCopy:function(){
            //some code
            alert(1)
        }
    });
    //beforeCopy afterCopy 是可选项
});
</script>
</body>
</html>